/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.sinosoft.feign.dispatcher;

import com.alibaba.fastjson.JSONObject;
import com.sinosoft.vo.http.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 *
 * @author root
 */
@FeignClient(value = "DISPATCHER")
public interface DispatchFeign {

    @RequestMapping(value = "/{serviceCode}", method = RequestMethod.POST)
    public Result access(@PathVariable(value = "serviceCode") String serviceCode, @RequestBody JSONObject param);

}
